﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WL_Store.Model
{
    /// <summary>
    /// 登录日志实体类
    /// </summary>
   public  class LoginLogsModel
    {
        /// <summary>
        /// 日志编号
        /// </summary>
        public int LogId { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        public string LoginName { get; set; }
        /// <summary>
        /// 管理员姓名
        /// </summary>
        public string AdminName { get; set; }
        /// <summary>
        /// 服务器名称
        /// </summary>
        public string  ServerName { get; set; }
        /// <summary>
        /// 客户端IP
        /// </summary>
        public string  ClientIP { get; set; }
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime LoginTime { get; set; }
        /// <summary>
        /// 退出时间
        /// </summary>
        public DateTime? ExitTime { get; set; }
       
        public string ExitTimeString {
            get {
                if (ExitTime!=null)
                {
                    return ExitTime.ToString();
                }
                else
                {
                    return "--";
                }
            }
        }

    }
}
